require 'sri'

DEBUG = true

file = File.new("examples/example1.rb")
file_string = file.read
file.close

root = ParseTree.translate( file_string )
#puts root.to_yaml

p ast = SRI::Parser.make_ast( root )

program = SRI::Program.new( ast )

#SRI.mix( program, :func, [10, :_] )
#SRI.mix( program, :func, [81, :_] )

SRI.mix( program, :pow, [3, :_] )

p program.pe_functions

v = SRI::Scope.new
puts "\n=> " + SRI.eval( program.body, program, v ).inspect
p v

